{% extends "esquinica/index.html" %}

{% block events %}
<p>Invitacion</p>

<form action="inviteFriends">
{% for id in friends %}
   {% if forloop.first %}
                 <tr>
   {% endif%}
    <td> <fb:name uid="{{ id }}"></fb:name>
     </td>
     
    {% if forloop.counter|divisibleby:4 and not forloop.last %}
        </tr><tr>           	             	
    {% endif%}
    
    {% if forloop.last %}
        </tr>
    {% endif %}

{% endfor %}

</form>


{% endblock %}